package org.openslash.resource;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

public abstract class ResourcePacket {
	
	protected ResourceBundle rb;
	
	public String GetValue(String key) {
		return rb.getString(key);
	}
	
	protected void initialize(InputStream in)
	{
		try {
			rb = new PropertyResourceBundle(in);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
